PHP: break - Manual - PHP: Hypertext Preprocessor break (PHP 4, PHP 5) break beendet die Ausführung der aktuellen for-, foreach-, while-, do-while- oder switch-Struktur. ... So you may want to dynamically choose the loop level to break from:
PHP: break - Manual A break statement that is in the outer part of a program (e.g. not in a control loop) will end the script. This caught me out when I mistakenly had a break in an if ...
How do I break a for loop in PHP if conditions are met? - Stack ... 2009年6月28日 - break; #breaks out of a loop continue; #skips rest of current iteration.
Can you 'exit' a loop in PHP? - Stack Overflow 2009年2月26日 - I have a loop that is doing some error checking in my PHP code. Originally it looked ... As stated in other posts, you can use the break keyword.
PHP while loop - Break and continue in the while loop Detailed description how to use while loops with PHP.